#ifndef __MENU__
#define __MENU__
#include <cocos2d.h>

#include "HelloWorldScene.h"

using namespace cocos2d;

class Menu
{
public:
	Menu();
	~Menu();

	CCSize size;

	/// 
	/// Create menu play again with image reply
	///
	///				[type]			[description]
	///	@param 1 : 	char*			path of file save best score
	///	return 		void | NULL
	///
	/// CHU THICH CHI TIET VE HAM
	/// 
	///
	/// @author HMQUAN
	/// time_create: 13 - 06 - 2014
	/// time_end: 13 - 06 - 2014
	///	version : 0.1
	void fCreateMenuReply(CCLayer* parent);

	/// 
	/// Get best score
	///
	///				[type]			[description]
	///	@param 1 : 	char*			path of file save best score
	///	return 		float | NULL
	///
	/// CHU THICH CHI TIET VE HAM
	/// 
	///
	/// @author HMQUAN
	/// time_create: 13 - 06 - 2014
	/// time_end: 13 - 06 - 2014
	///	version : 0.1
	float fGetBestScore(char* pathFile);

	/// 
	/// Add menu into a map
	///				[type]				[description]
	/// @param 1 : 	CCLayer*			layer parent add menu
	/// @param 2 : 	CCMenu*				menu
	///	return 		void
	/// CHU THICH CHI TIET VE HAM
	/// 
	///
	/// @author HMQUAN
	/// time_create: 13 - 06 - 2014
	/// time_end: 13 - 06 - 2014
	///	version : 0.1

	void fAddMenuIntoMap(CCLayer* map, CCMenu* menu);

	/// 
	/// Add menu into a map
	///				[type]				[description]
	/// @param 1 : 	CCLayer*			layer parent add menu
	/// @param 2 : 	CCMenu*				menu
	/// @param 3 : 	int 				set zOrder of menu in parent.
	///	return 		void
	/// CHU THICH CHI TIET VE HAM
	/// 
	///
	/// @author HMQUAN
	/// time_create: 13 - 06 - 2014
	/// time_end: 13 - 06 - 2014
	///	version : 0.1

	void fAddMenuIntoMap(CCLayer* map, CCMenu* menu, int zOrder);


	/// 
	/// Add menu into a map
	///				[type]				[description]
	/// @param 1 : 	CCLayer*			layer parent add menu
	/// @param 2 : 	CCMenu*				menu
	/// @param 3 : 	int 				set zOrder of menu in parent.
	/// @param 4 : 	int 				set tag of menu.
	///	return 		void
	/// CHU THICH CHI TIET VE HAM
	/// 
	///
	/// @author HMQUAN
	/// time_create: 13 - 06 - 2014
	/// time_end: 13 - 06 - 2014
	///	version : 0.1
	void fAddMenuIntoMap(CCLayer* map, CCMenu* menu, int zOrder, int tag);


	/// 
	/// Add item menu into menu
	///				[type]				[description]
	///	@param 1 : 	CCMenu* 			menu to add menu item
	/// @param 2 : 	CCArray*			array menu item
	/// CHU THICH CHI TIET VE HAM
	/// 
	///
	/// @author HMQUAN
	/// time_create: 13 - 06 - 2014
	/// time_end: 13 - 06 - 2014
	///	version : 0.1
	void fAddMenuItem(CCMenu* menuParent, CCArray* arrMenuItems);

	void playAgainFunc();
};


#endif /*__MENU__*/
